package com.sanyang.lawyer.mapper.Case;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sanyang.lawyer.ResultApi.ResponseResult;
import com.sanyang.lawyer.entity.Case_court;
import com.sanyang.lawyer.entity.Case_law;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface Case_courtMapper extends BaseMapper<Case_court> {
    
    //根据id查询一条记录
    public Case_court queryByid(int court);
    
    
    //查询所有
    public List<Case_court> selectAll();

    //模糊查询出案件信息
    public List<Case_law> queryCourtByLaw(Case_law case_law);


    @Update("update case_law set session_date = #{sessionDate}, state_session_date=#{stateSessionDate}," +
            "trial_date=#{trialDate} where case_id = #{caseId}")
    public void update_courtTime(Case_law case_law);
    
    //以法院名称查询
    public Case_court querybyname(String courname);
}
